package com.xls.boxlibrary.adapter;

import android.content.Context;
import android.graphics.Color;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xls.boxlibrary.R;
import com.xls.boxlibrary.entity.AppsRulesEntity;


public class DuiHuanJiBiTabItemView extends MvpRVViewHolder<AppsRulesEntity> {
    private TextView duihuanjinbi_tab_title;
    private TextView duihuanjinbi_tab_num;

    public DuiHuanJiBiTabItemView(Context context, ViewGroup p) {
        super(R.layout.item_duihuanjinbi_tab, context, p);
    }

    @Override
    public void initView() {
        duihuanjinbi_tab_title = itemView.findViewById(R.id.duihuanjinbi_tab_title);
        duihuanjinbi_tab_num = itemView.findViewById(R.id.duihuanjinbi_tab_num);
        duihuanjinbi_tab_title.setText(viewData.getExchangeValue()+"元");
        duihuanjinbi_tab_num.setText("可兑换"+viewData.getExchangeCount()+"次");
        duihuanjinbi_tab_title.setSelected(viewData.isSelector());
    }
}
